<?php
namespace PsiFramework\Applications\AlloMediaPortal\Classes\Model;

import("Classes.Model.Object");
import("Plugins.Form.Classes.Model.Form");

use \PsiFramework\Classes\Model\Object;
use \PsiFramework\Plugins\Form\Classes\Model\Form;

/**
 * AlloMedia
 * Portail des professionnels
 *
 * @author Rémi San
 * @version beta
 */

/**
 * Classe d'une partie de formulaire d'informations
 *
 * @package Model
 */
class Theme extends Form
{
    protected /*string*/            $_presentationTitle;
    protected /*string*/            $_presentation;
    protected /*Image*/             $_image;
    protected /*string*/            $_complementTitle;
    protected /*string*/            $_complement;
    protected /*Image*/             $_complementImage;
    protected /*ImageCollection*/   $_sliderImages;
    protected /*ResponseId[]*/      $_responseIds;
    protected /*InformationPart[]*/ $_parts ;

    public function __construct(
        /*int*/               $id=null,
        /*string*/            $name=null,
        /*FormFieldLink[]*/   $fields=null,
        /*JsonForm*/          $structure=null,
        /*ObjectParameters*/  $responseParameters=null,
        /*string*/            $presentationTitle=null,
        /*string*/            $presentation=null,
        /*Image*/             $image=null,
        /*string*/            $complementTitle=null,
        /*string*/            $complement=null,
        /*Image*/             $complementImage=null,
        /*ImageCollection*/   $sliderImages=null,
        /*ResponseId[]*/      $responseIds=null,
        /*InformationPart[]*/ $parts=null
    )
    {
        parent::__construct(
            $id,
            $name,
            $fields,
            $structure,
            $responseParameters
        );
        $this->_presentationTitle = $presentationTitle;
        $this->_presentation = $presentation;
        $this->_image = $image;
        $this->_complementTitle = $complementTitle;
        $this->_complement = $complement;
        $this->_complementImage = $complementImage;
        $this->_sliderImages = $sliderImages;
        $this->_responseIds = $responseIds ;
        $this->_parts = $parts ;
    }

    public function getResponseIds()
    {
        return $this->_responseIds ;
    }

    public function setResponseIds($responseIds)
    {
        $this->_responseIds = $responseIds ;
    }
    
    public function getPresentation()
    {
    	return $this->_presentation ;
    }
    
    public function setPresentation($presentation)
    {
    	$this->_presentation = $presentation ;
    }
    
    public function getPresentationTitle()
    {
    	return $this->_presentationTitle ;
    }
    
    public function setPresentationTitle($presentationTitle)
    {
    	$this->_presentationTitle = $presentationTitle ;
    }
    
    public function getImage()
    {
    	return $this->_image ;
    }
    
    public function setImage($image)
    {
    	$this->_image = $image ;
    }
    
    public function getComplementTitle()
    {
    	return $this->_complementTitle ;
    }
    
    public function setComplementTitle($complementTitle)
    {
    	$this->_complementTitle = $complementTitle ;
    }
    
    public function getComplement()
    {
    	return $this->_complement ;
    }
    
    public function setComplement($complement)
    {
    	$this->_complement = $complement ;
    }
    
    public function getComplementImage()
    {
    	return $this->_complementImage ;
    }
    
    public function setComplementImage($complementImage)
    {
    	$this->_complementImage = $complementImage ;
    }
    
    public function getSliderImages()
    {
    	return $this->_sliderImages ;
    }
    
    public function setSliderImages($images)
    {
    	$this->_sliderImages = $images ;
    }

    public function addResponseId($responseId)
    {
        if (is_null($this->_responseIds)) {
        	$this->_responseIds = array();
        }
        $this->_responseIds[] = $responseId ;
    }

    public function getParts()
    {
        return $this->_parts ;
    }

    public function setParts($parts)
    {
        $this->_parts = $parts ;
    }

}
